package com.rm.zeyou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rm.zeyou.entity.ChannelConsumeDetail;
import com.rm.zeyou.vo.response.ChannelIndexResponseVo;
import com.rm.zeyou.vo.response.DeteilList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 渠道商佣金记录表 Mapper 接口
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:07
 */
@Mapper
public interface ChannelConsumeDetailMapper extends BaseMapper<ChannelConsumeDetail> {

    ChannelIndexResponseVo selectTotal(@Param("userId") Long userId);

    List<DeteilList> channelOrderDeteilList(@Param("userId") Long userId, @Param("keyWord") String keyWord);

    BigDecimal selectAddAmount(@Param("channelId") Long channelId);

    BigDecimal selectPayoutAmount(@Param("channelId") Long channelId);
}
